<%@ page import="com.hnluchuan.staff.dto.EducationDTO" %>
<%@ page import="com.hnluchuan.staff.model.Education" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<%@include file="/common/head.jsp" %>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
		<form action="${ctx }/admin/education/save?id=${n.id }" id="detail-form" class="form-horizontal" method="post">
			<div class="form-group">
				 <!-- 员工ID -->
                 <%--<label class="col-sm-2 control-label">员工ID</label>--%>
                 <%--<div class="col-sm-4">--%>
                 	<input type="hidden" id="employee-id" name="employee.id" value="${n.employee.id }" class="form-control">
                 	<input type="hidden"  placeholder="请选择员工ID" class="form-control" id="employee-name" value="${n.employee.id }"
                 		onclick="bring({
						                 	url:'${ctx}/admin/employee/search',
						                 	name: 'id',
						                 	idInput: 'employee-id',
						                 	nameInput: 'employee-name'
						                 	})" />

                 <%--</div>--%>



                <%
                    Integer type=(Integer)request.getAttribute("type");
                    EducationDTO educationDTO=(EducationDTO) request.getAttribute("n");
                if(1==type&&educationDTO==null)
                {
                %>
                <label class="col-sm-2 control-label">用户身份证</label>
                <div class="col-sm-4">
                    <input type="text" placeholder="请填写身份证号"  class="form-control" name="iDCard"  >
                </div>
                <%
                    }
                %>

            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">学习起始时间</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="start" name="start" value="<fmt:formatDate value='${n.start }' pattern='yyyy-MM-dd'/>" onclick="laydate({format: ''})">
                </div>
				 <!-- 学习结束时间 -->
                 <label class="col-sm-2 control-label">学习结束时间</label>
                 <div class="col-sm-4">
                 	<input type="text" class="form-control" id="end" name="end" value="<fmt:formatDate value='${n.end }' pattern='yyyy-MM-dd'/>" onclick="laydate({format: ''})">
                 </div>

            </div>
            <div class="form-group">
                <!-- 专业 -->
                <label class="col-sm-2 control-label">专业</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="major" name="major" value="${n.major }">
                </div>
				 <!-- 学历 -->
                 <label class="col-sm-2 control-label">学历</label>
                 <div class="col-sm-4">
                 	<%--<input type="text" class="form-control" id="record" name="record" value="${n.record }">--%>
                     <select name="record" class="form-control input-sm">
                         <option value="1">大专</option>
                         <option value="2">本科</option>
                         <option value="3">研究生</option>
                     </select>
                 </div>

            </div>
            <div class="form-group">
                <!-- 证书 -->
                <label class="col-sm-2 control-label">证书</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="certificate" name="certificate" value="${n.certificate }">
                </div>
             </div>	
        	
		</form>
</div>

<%@include file="/common/foot.jsp" %>

</body>
</html>
